<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'config'.DS.'config.php';

class template_config_system extends template_config
{

	protected function center()
	{
		
		$this->toolbar();
		$config = $this->get('config');
		?>

<div class="box">
	<div class="box-tl"><div class="box-tr"><div class="box-tm"></div></div></div>	
	<div class="box-m">
		<h3 class="title"><?php echo $this->get_title(); ?></h3>
		<form action="./" method="post">
		<table class="edit-table">
		<tbody>
		<tr>
		<td class="key">启用/关闭网站</td>
		<td>
			<label><input type="radio" name="offline" value="0" <?php echo $config->offline?'':'checked'; ?>>启用</label> &nbsp; 
			<label><input type="radio" name="offline" value="1" <?php echo $config->offline?'checked':''; ?>>关闭</label>
		</td>
		</tr>
		<tr>
		<td class="key">关闭网站时提示信息</td>
		<td>
			<textarea name="offline_message" style="width:500px; height:30px;"><?php echo $config->offline_message; ?></textarea>
		</td>
		</tr>
		<tr>
		<td class="key">网址</td>
		<td><input type="text" name="site_url" size="50" value="<?php echo $config->site_url; ?>" /></td>
		</tr>
		<tr>
		<td class="key">网站名称</td>
		<td><input type="text" name="site_name" size="50" value="<?php echo $config->site_name; ?>" /></td>
		</tr>
		<tr>
		<td class="key">启用静态网址</td>
		<td>
			<label><input type="radio" name="sef" value="1" <?php echo $config->sef?'checked':''; ?>>启用</label> &nbsp; 
			<label><input type="radio" name="sef" value="0" <?php echo $config->sef?'':'checked'; ?>>关闭</label> &nbsp; 
			{此功能需要服务器启用 .htaccess 支持}
		</td>
		</tr>

		<tr>
		<td class="key"></td>
		<td>
		<input class="btn" type="submit" value="保存" />
		</td>
		</tr>
		</tbody>
		</table>
		<input type="hidden" name="controller" value="config" />
		<input type="hidden" name="task" value="config_system_save" />
		</form>
	</div>
	<div class="box-bl"><div class="box-br"><div class="box-bm"></div></div></div>
</div>
		

		<?php
		
	}	

}
?>